package sf.actions;

import java.net.URL;

import javax.swing.AbstractAction;
import javax.swing.Icon;
import javax.swing.ImageIcon;

public abstract class SFAbstractAction extends AbstractAction {

	public Icon loadIcon(String fileName) {
		URL imageURL = getClass().getResource(fileName);
		Icon icon = null;

		if (imageURL != null)
			icon = new ImageIcon(imageURL);
		else
			System.err.println("Resource not found: " + fileName);

		return icon;
	}
	
	public void setButtonMode(int mode) {};
}
